// 404页面和其他
const route = [
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "main-index" */ '@views/index.vue'),
    redirect: '/404/index',
    children: [
      {
        path: 'index',
        name: '404',
        component: () => import(/* webpackChunkName: "nofound" */ '@/components/noFound/404.vue')
      }
    ]
  },
  {
    path: '*',
    redirect: (to) => {
      return '/404'
    },
    meta: { hidden: true }
  }
]

export default route
